home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / tstn22.zip / TESTNET.DOC < prev    next >
Text File  |  1991-02-13  |  22KB  |  371 lines

  1.                      TESTNET.EXE Version 2.10 02-05-1991
  2.  
  3.                                By Scott Taylor 
  4.                             228 Gold Kettle Drive 
  5.                            Gaithersburg, MD. 20878 
  6.                                (301)-921-0437
  7.  
  8.  
  9.  
  10.   **************************************************************************
  11.   *** THIS UTILITY IS GRANTED FOR USE BY THE GENERAL PUBLIC, BUSINESSES, ***
  12.   *** AND VENDORS. IT IS PROVIDED FREE OF CHARGE! ITS USE IS INTENDED TO ***
  13.   *** PROMOTE THE UNDERSTANDING AND OPERATIONS OF LOCAL AREA NETWORKS    ***
  14.   *** AND HOW THEY RELATE TO DIFFERENT ENVIRONMENTAL CHARACTERISTICS.    ***
  15.   **************************************************************************
  16.  
  17.  
  18.  
  19. TESTNET: This utility is intended to test the performance of Local Area 
  20. Networks within the realm of file I/O activity. It may also be used to test
  21. stand alone PC's, or compare the two environments. This application has been
  22. designed to allow for many different testing options, primarily to give more
  23. real time results. This utility should also be used as a tool to gauge
  24. performance while applications and tests are running on other nodes in a
  25. network. TESTNET can also be use in conjunction with low-level packet analysis
  26. programs, like The Sniffer or LANalyzer, for problem determination. It is
  27. important to remember that benchmarking Local Area Networks is far from an
  28. exact science. This test will however give you relative performance
  29. statistics.
  30.  
  31. The program checks for the existence of Novell's NetWare. If Novell is
  32. running, TESTNET will display the version of NetWare it is running under. Also
  33. if the test is running under a NetWare environment the filename being used for
  34. the test will have the same extension as the station number in the network.
  35.  
  36. In version 2.10 the all of the time sensitive routines, such as low-level file
  37. I/O and timing, have been rewritten in assembler and optimized to provide
  38. greater accuracy, and lower overhead, in calculating throughput. I tried to
  39. eliminate as many non-essential instructions as possible in the timing
  40. process. TESTNET is now in its 7th revision and 2nd generation. Most of the
  41. recent changes have been made due to response from different LAN
  42. Hardware/Software vendors.
  43.  
  44.  
  45.  
  46.  
  47.                              RESULTS OF THE TESTS
  48.                    (See EXAMPLE-3 For A Sample Test Result)
  49.  
  50. The valuable results of this test will show the total elapsed time in seconds 
  51. and total throughput in KB/sec transferred between the disk. An additional
  52. feature is a display bar graph of total throughput, for each iteration, in
  53. kilobytes per  second. The bar graph has been enhanced since version 1.4. A
  54. bright, or highlighted, bar represents the current throughput. A darker, or
  55. shaded, bar extension represents the peak throughput for the currently running
  56. test. Version 2.10 now displays a PASS counter beside the test filename. This
  57. is used in conjunction with the REPEAT TEST mode. Every time the test repeats
  58. the PASS counter will be incremented.
  59.  
  60.  
  61.  
  62.                              TESTING TECHNIQUES
  63.  
  64. NOTE: It is important to remember that test results will vary depending on
  65. several of the following conditions. The speed of the CPU used for testing.
  66. The speed of the disk or controller, and if caching is employed. The type of
  67. network adapter and topology. The amount of CPU instructions used in the test.
  68. Any TSR's, or memory resident utilities, that check interrupts or timer ticks.
  69. And more importantly the type of test and parameters being used. There is no
  70. precise method of determining how a system should perform. This test utility
  71. will allow you to compare relative environments and operating systems. Please
  72. consider all these factors when performing comparative tests!
  73.  
  74. Using a SEQUENTIAL file access method tests server disk and caching
  75. performance. Using OVERLAID file access tests reflects more of the network
  76. interface performance as well as local (workstation) cache techniques. Larger
  77. record sizes are handled more efficiently by most operating systems
  78. (especially DOS). Using larger record sizes (4K and up) demonstrates overall
  79. throughput. Smaller record sizes demonstrates the operating systems ability
  80. to deal with small record blocks. A good example would be to run this test
  81. from a workstation local C: drive. Then run it again from that workstation but
  82. to a network drive. Usually you will see a significant increase in
  83. performance. Also try running the test with the VERIFY option on/off. Here is
  84. another good example, especially for comparing different server hardware
  85. (disk, memory, cpu). This is especially useful on Novell networks since the
  86. server console displays performance characteristics. If using NetWare 2.10 or
  87. greater, FCONSOLE will give some useful information. To compare hard disks
  88. generate a file size, using Testnet, that is larger than the total memory
  89. installed in the server. Then you can compare throughput times displayed by
  90. Testnet. This way the file size is to large to fit in cache memory and tests
  91. raw disk I/O. 
  92.  
  93. To compare CPU's (as servers) or cache memory generate a file size, using 
  94. Testnet, that is approximately 512K smaller than the total memory installed
  95. in the server. Then set Testnet to read the file, this will test the raw CPU
  96. & Cache memory performance. Then you can compare the throughput displayed by 
  97. Testnet. It is best to use a large record size (eg. 32768), this will use the
  98. least amount of CPU instruction overhead for performing the actual I/O. As the
  99. test is in progress you can monitor the server console for peak "I/O PENDING"
  100. and peak "% UTILIZATION".
  101.  
  102.   
  103.  
  104.  
  105.                           MAIN MENU SCREEN FUNCTIONS
  106.         (See EXAMPLE-1 Below To View A Sample Of The Main Menu Screen)
  107.  
  108. MENU: The menu keys are the UP and DOWN arrow keys to highlight a menu option. 
  109. Press RETURN to select a highlighted option, then input the desired value for 
  110. that option. Instructions accompany each menu option when the RETURN key is 
  111. pressed. <ESC> will exit TESTNET to the operating system. 
  112.  
  113.  
  114. RUNNING THE TEST: From the main menu <F1> starts the test in single station,
  115. or stand alone mode.
  116.  
  117.  
  118. RUNNING MULTIUSER TESTS: MULTI-STATION testing requires that SHARE be
  119. installed, unless running Novell's NetWare. This is because aggregate results
  120. are tallied in a file that uses record locking. Pressing <F2> sets the station
  121. into the MULTI-STATION test mode. Simply press <F1> when the last station is
  122. set into the MULTI-STATION test mode, then all stations activated will begin
  123. testing. A new feature since version 1.4 is the ability to use identical test
  124. parameters during MULTI-STATION testing. This is achieved by pressing <F4>
  125. instead of <F1>. Pressing <F4> from the last node will cause all nodes to
  126. start testing with that stations test parameters. Once the MULTI-STATION
  127. testing begins each station will then show its average throughput to/from the
  128. file server. All stations running in the MULTI-STATION mode must be able to
  129. access the same root directory. A new feature in version 2.10 is the ability
  130. to stop or restart all stations from a single node. Once MULTI-STATION testing
  131. has begun, and repeat testing was selected, pressing the <ESCAPE> key on any
  132. node will cause testing to stop on all nodes. TESTNET will then prompt with
  133. "Continue Testing (Y/N)". Pressing <Yes> will cause all other nodes to enter
  134. MULTI-STATION testing mode again. You may then change test parameters if
  135. desired and re-enter MULTI-USER test mode. Pressing the <No> key will cause
  136. all nodes to exit back to the operating system (DOS, OS/2, Windows, etc.)
  137.  
  138. Another new feature in version 2.10 is the display of aggregate and average
  139. throughput. This function has a watch-dog timer built in that checks for nodes
  140. that do not report. For example, if a node crashes or does not complete the
  141. tests, the other nodes will consider that station dead and will continue
  142. testing without it. The timeout period is two minutes after the last node
  143. reported.
  144.  
  145. Version 2.10 now has a command line option, \M, to enter MULTI-STATION mode.
  146. Using this will allow a test node to start up in MULTI-STATION mode without
  147. any keystroke intervention. This is especially useful when starting network
  148. stations from a batch file. Example: type 'TESTNET /M' <return>.
  149.  
  150.  
  151. DATA RECORDING: A new feature of TESTNET, since version 1.3, is a data
  152. recording function. This is toggled on and off by pressing the <F3> key at the
  153. main menu. The state of the recording function (Enabled or Disabled) is
  154. displayed just above the menu instruction area. This will record historical
  155. data to a file. This data file will be created in the root of the volume, or
  156. drive, that you are testing on. You should take care to make sure that all
  157. stations testing have access rights to the root of the volume or drive. The
  158. data file is TESTFILE.DAT, and is used by all stations. The test data is
  159. written to the file at the end of each test cycle. If Repeat Testing has been
  160. selected, the data is written each time the test restarts. See EXAMPLE-5 at
  161. the end of this document for a sample printout. This data can be used
  162. comparatively. You can easily sort out the information by using the DOS SORT
  163. utility. At the DOS prompt type just in the  following 'TYPE TESTFILE.DAT|SORT
  164. > LPT1:'. This will redirect the sorted  information to the LPT1 printer port.
  165. You can also replace the 'LPT1:' with a file name to have the sorted
  166. information dumped into a file for viewing.   
  167.  
  168.  
  169. RESULTS REVIEW: The <F4> is used to view a record of all the tests that have
  170. been performed at a particular station. This is a new feature for TESTNET
  171. since version 1.4. Pressing <F4> will display all current test data (see
  172. EXAMPLE-4 for a sample data screen). This is data that is kept in memory. Up
  173. to 250 test results can be displayed. If more than 250 tests have been
  174. performed, the remainder is ignored. This function is separate from the Data
  175. Recording Function, because that saves data to a file. While viewing the test
  176. data, the UP and DOWN arrow keys will scroll through the data. Pressing
  177. <ESCAPE> will return to the Main Menu Screen. Pressing <F1> will print all of
  178. the tests results in memory to a printer (Device LPT1 or PRN:).
  179.  
  180.  
  181.  
  182.  
  183.                                 MENU OPTIONS
  184.           (See EXAMPLE-1 Below To View A Sample Of The Main Menu)  
  185.  
  186. REPEAT TESTING: This will allow testing to be repeated over and over again 
  187. until the <ESCAPE> key is pressed, then testing will discontinue. This option 
  188. will also work in MULTI-STATION test mode.
  189.  
  190.  
  191. I/O DELAY CYCLE: This option is used to create run/stop periods. There are 
  192. actually two fields to this. The first is for defining how long transactions 
  193. will be exchanged, in seconds, before the test period is delayed. The second 
  194. option is for defining how long each delay cycle will last, in seconds. The 
  195. values are between 0 and 10 seconds. 0 indicated in any field will negate any 
  196. delaying at all. This option is useful for creating a pulsed environment that
  197. more closely resembles a true network environment. You could set the run cycle
  198. to 5 seconds and the delay period to 10 seconds for example. This means that
  199. data is exchanged for 5 seconds, then stops for 10. And this is repeated until
  200. all the iterations have been completed. This will not affect the time counter
  201. in any way. This is an excellent way to measure the amount of degradation in
  202. a hard working environment. Of course you could set many different operating
  203. variables to produce different results depending on what type of network
  204. conditions you wanted to resemble. 
  205.  
  206.      
  207. RECORD SIZE: TESTNET version 2.10 has increased the record size from 32768 to
  208. 65535 bytes. The record size is the size of each block to be read or written, 
  209. each time the disk is accessed for I/O. The values range from 1 byte to 65535 
  210. bytes. The most common physical block size for most disks is 4K (4096).
  211. Although some operating systems are adjustable, such as NetWare 386. 
  212.  
  213.  
  214. REPETITIONS: Repetitions represents how many times the record, or buffer, will 
  215. be transacted (read or written). The values range from 1 to 10000 iterations. 
  216.  
  217.  
  218. I/O: This is the type of file I/O transactions that will occur. This
  219. determines if you want to Read, Write, or Alternate (switch between Write &
  220. Read).
  221.  
  222.  
  223. FILE: This determines how the file will be accessed. Either Sequential access 
  224. (each record is appended to the end of the previous one), or Overlay access
  225. (meaning each record overlays the previous one).
  226.  
  227.  
  228. RECORD MANIPULATION: This is how the record size will be maintained. The
  229. record will remain the same size (STD), it can increment from 1 to the value
  230. specified (INC), it can decrement from the value specified down to 1 (DEC),
  231. and it can be set to a random value between 1 and the value set (RAND). 
  232.  
  233.  
  234. Any questions, comments, or suggestions are welcomed ! 
  235.  
  236.  
  237.  
  238.  
  239.  
  240. ***********************  EXAMPLE-1 (Main Menu Screen) ************************
  241.  
  242.  
  243.            TESTNET.EXE  Version 2.10  02-05-1991   By Scott Taylor            
  244.            Operating Environment|   NetWare 386 V3.10 Rev. A                  
  245. ╔════════════════════════════════════════════════════════════════════════════╗ 
  246. ║ ┌────────────────────────────────────────────────────────────────────────┐ ║ 
  247. ║ │     TESTNET - THE NETWORK & STANDALONE FILE I/O PERFORMANCE TESTER     │ ║ 
  248. ║ └────────────────────────────────────────────────────────────────────────┘ ║ 
  249. ║ ┌─────────────────────────────────────┐      ▌DATA RECORDING DISABLED▐     ║ 
  250. ║ │ REPEAT TESTING <YES - NO>  ▌ NO     │                                    ║ 
  251. ║ │ I/O DELAY CYCLES <0 - 10>  ▌ 0  \ 0 │   <ESC> = Exit to system           ║ 
  252. ║ │ RECORD SIZE  <1 - 65535>   ▌ 4096   │   <F1> = Start Testing             ║ 
  253. ║ │ REPETITIONS  <1 - 10000>   ▌ 1000   │   <F2> = Start Multi-Station Test  ║ 
  254. ║ │ I/O <1=READ 2=WRITE 3=ALT> ▌ 2      │   <F3> = Enable Data Recording     ║ 
  255. ║ │ FILE <1=SEQUENTIAL 2=OVL>  ▌ 1      │   <F4> = Display Test Results      ║ 
  256. ║ │ RECORD MANIPULATION STYLE  ▌ 4      │   <> & <> = Select Menu Option   ║ 
  257. ║ │ <1=INC 2=DEC 3=RAND 4=STD> ▌        │   <ENTER> = Enter Data For Option  ║ 
  258. ║ └─────────────────────────────────────┘                                    ║ 
  259. ╟────────────────────────────────────────────────────────────────────────────╢ 
  260. ║                                                                            ║ 
  261. ║                                                                            ║ 
  262. ║                                                                            ║ 
  263. ║                                                                            ║ 
  264. ║                                                                            ║ 
  265. ╚════════════════════════════════════════════════════════════════════════════╝ 
  266.  
  267.  
  268.  
  269.  
  270.  
  271. **************** EXAMPLE-2 (Multi-Station Mode Option Screen) *****************
  272.  
  273.            TESTNET.EXE  Version 2.10  02-05-1991   By Scott Taylor            
  274.            Operating Environment|   NetWare 386 V3.10 Rev. A                  
  275. ╔════════════════════════════════════════════════════════════════════════════╗ 
  276. ║ ┌────────────────────────────────────────────────────────────────────────┐ ║ 
  277. ║ │     TESTNET - THE NETWORK & STANDALONE FILE I/O PERFORMANCE TESTER     │ ║ 
  278. ║ └────────────────────────────────────────────────────────────────────────┘ ║ 
  279. ║ ┌─────────────────────────────────────┐      ▌DATA RECORDING DISABLED▐     ║ 
  280. ║ │ REPEAT TESTING <YES - NO>  ▌ NO     │                                    ║ 
  281. ║ │ I/O DELAY ╔═════════════════════════════════════════════════╗m           ║ 
  282. ║ │ RECORD SIZ║                                                 ║            ║ 
  283. ║ │ REPETITION║      ═══  MULTI-STATION TESTING MODE  ═══       ║ation Test  ║ 
  284. ║ │ I/O <1=REA║                                                 ║cording     ║ 
  285. ║ │ FILE <1=SE║                                                 ║esults      ║ 
  286. ║ │ RECORD MAN║     This mode is to allow multiple stations     ║nu Option   ║ 
  287. ║ │ <1=INC 2=D║     to run the I/O tests at the same time.      ║For Option  ║ 
  288. ║ └───────────║                                                 ║            ║ 
  289. ╟─────────────║     All stations to participate in the test     ║────────────╢ 
  290. ║             ║     should be set into this mode (pressing      ║            ║ 
  291. ║             ║     <F2> from the main screen).  To begin       ║            ║ 
  292. ║             ║     testing, press <F1> from one of the work    ║            ║ 
  293. ║             ║     stations activated.  All nodes will then    ║            ║ 
  294. ║             ║     start testing.  Pressing <F4> will cause    ║            ║ 
  295. ╚═════════════║     all nodes to begin testing with the same    ║════════════╝ 
  296.               ║     set of test parameters. <ESC> WILL ABORT!   ║            
  297.               ╚═════════════════════════════════════════════════╝            
  298.  
  299. ****************** EXAMPLE-3 (Sample Testing/Results Screen) ******************
  300.  
  301.            TESTNET.EXE  Version 2.10  02-05-1991   By Scott Taylor            
  302.            Operating Environment|   NetWare 386 V3.10 Rev. A                  
  303. ╔════════════════════════════════════════════════════════════════════════════╗ 
  304. ║ ┌────────────────────────────────────────────────────────────────────────┐ ║ 
  305. ║ │     TESTNET - THE NETWORK & STANDALONE FILE I/O PERFORMANCE TESTER     │ ║ 
  306. ║ └────────────────────────────────────────────────────────────────────────┘ ║ 
  307. ║ ┌─────────────────────────────────────┐      ▌DATA RECORDING DISABLED▐     ║ 
  308. ║ │ REPEAT TESTING <YES - NO>  ▌ YES    │                                    ║ 
  309. ║ │ I/O DELAY CYCLES <0 - 10>  ▌ 0  \ 0 │        -FILENAME-      -PASS-      ║ 
  310. ║ │ RECORD SIZE  <1 - 65535>   ▌ 65535  │       TESTFILE.001      #001       ║ 
  311. ║ │ REPETITIONS  <1 - 10000>   ▌ 100    │   ╔════════════════════════════╗   ║ 
  312. ║ │ I/O <1=READ 2=WRITE 3=ALT> ▌ 2      │   ║ NODES IN TEST    #    1    ║   ║ 
  313. ║ │ FILE <1=SEQUENTIAL 2=OVL>  ▌ 2      │   ║ NODES REPORTED   #    1    ║   ║ 
  314. ║ │ RECORD MANIPULATION STYLE  ▌ 4      │   ║ AVERAGE KB/SEC   #  219.77 ║   ║ 
  315. ║ │ <1=INC 2=DEC 3=RAND 4=STD> ▌        │   ║ AGGREGATE KB/SEC #  219.77 ║   ║ 
  316. ║ └─────────────────────────────────────┘   ╚═══════[ COMPLETED ]════════╝   ║ 
  317. ╟────────────────────────────────────────────────────────────────────────────╢ 
  318. ║  TIME = 29   I/O COUNT = 100    TOTAL BYTES = 6553500    KB/SEC = 219.77   ║ 
  319. ║                                                                            ║ 
  320. ║  KB/ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░              ║ 
  321. ║  SEC ┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴▄┴   ║ 
  322. ║     0    20   40   60   80   100  120  140  160  180  200  220  240  260   ║ 
  323. ╚════════════════════════════════════════════════════════════════════════════╝ 
  324.  Total Seconds = 29.12                                                       
  325.  
  326.  
  327. ************* EXAMPLE-4 (Sample Display Of Cumulative Test Data) *************
  328.  
  329.            TESTNET.EXE  Version 2.10  02-05-1991   By Scott Taylor            
  330.            Operating Environment|   NetWare 386 V3.10 Rev. A                  
  331.  
  332. ╔ NODE  PASS  OPERATION   I/O   TIME  BUFFER  I/O COUNT  TOTAL BYTES  KB/SEC ╗ 
  333. ║                                                                            ║ 
  334. ║ 001   001   WRITE       SEQ   9.12   4096     500        2048000    219.28 ║ 
  335. ║ 001   002   WRITE       SEQ   9.12   4096     500        2048000    219.28 ║ 
  336. ║ 001   003   WRITE       SEQ   9.12   4096     500        2048000    219.28 ║ 
  337. ║ 001   004   WRITE       SEQ   9.12   4096     500        2048000    219.28 ║ 
  338. ║ 001   001   READ        SEQ   8.96   4096     500        2048000    223.31 ║ 
  339. ║ 001   002   READ        SEQ   8.79   4096     500        2048000    227.50 ║ 
  340. ║ 001   003   READ        SEQ   8.74   4096     500        2048000    228.93 ║ 
  341. ║ 001   001   ALTERNATE   OVL   8.90   4096     250        2048000    224.69 ║ 
  342. ║ 001   002   ALTERNATE   OVL   8.96   4096     250        2048000    223.31 ║ 
  343. ║ 001   003   ALTERNATE   OVL   8.96   4096     250        2048000    223.31 ║ 
  344. ║                                                                            ║ 
  345. ║                                                                            ║ 
  346. ╟                                                                            ╢ 
  347. ║                                                                            ║ 
  348. ║                                                                            ║ 
  349. ║                                                                            ║ 
  350. ║                                                                            ║ 
  351. ║                                                                            ║ 
  352. ╚   [ ESC-Key To Exit ]                                [ F1-Key To Print ]   ╝ 
  353.  
  354.  
  355.  
  356.  
  357. ********** EXAMPLE-5 (Sample Printout Of Recorded Data File Results) **********
  358.  
  359. TYPE TESTFILE.DAT
  360.  
  361.  NODE  PASS  OPERATION   I/O   TIME  BUFFER  I/O COUNT  TOTAL BYTES  KB/SEC  
  362.   001  001   WRITE       SEQ   6.04  32768     100        3276800    529.45  
  363.   001  001   READ        SEQ   5.99  32768     100        3276800    534.31  
  364.   001  002   READ        SEQ   5.99  32768     100        3276800    534.31  
  365.   001  003   READ        SEQ   5.99  32768     100        3276800    534.31  
  366.   001  001   ALTERNATE   OVL  21.76  65535     100       13107000    588.27  
  367.   001  002   ALTERNATE   OVL  21.70  65535     100       13107000    589.76  
  368.   001  003   ALTERNATE   OVL  21.70  65535     100       13107000    589.76
  369.  
  370.  
  371.